package com.uflower.common.to.es;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.List;

// 传输对象

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SkuEsModel {
    private Long spuId;
    private Long skuId;
    private String skuTitle;
    private BigDecimal skuPrice;
    private String skuImg;
    private Long saleCount;//销量
    private Boolean hasStock;//是否有库存
    private Long hotScore;//热度评分
    private Long brandId;
    private  String brandName;
    private String brandImg;
    private Long catelogId;
    private String catelogName;
    private List<AttrsEsModel> attrs;//属性
    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    public static class AttrsEsModel{
        private Long attrId;
        private String attrName;
        private String attrValue;//属性值
    }
}
